package com.itheima.test_extends.demo2;

public class GrandFather {
    public void drink(){
        System.out.println("喝酒");
    }
}
class Father extends GrandFather{
    public void smoke(){
        System.out.println("抽烟");
    }
}

class Son extends Father{
    public void tangtou(){
        System.out.println("烫头");
    }
}

class Uncle extends GrandFather{
    public void eat(){
        System.out.println("吃饭");
    }
}